﻿<%@ Assembly Name="MFD.SharePoint.TaskNotification, Version=1.1.0.0, Culture=neutral, PublicKeyToken=7c8144d7a60dea4f"%> 
<%@ Page Language="C#" Inherits="MFD.SharePoint.TaskNotification.TaskNotificationPage" MasterPageFile="~/_layouts/application.master"      %> 
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<asp:Content ID="Content1" contentplaceholderid="PlaceHolderPageTitle" runat="server">
	<SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" text="<%$Resources:wss,emaildetails_pagetitle%>" EncodeMethod='HtmlEncode'/>
</asp:Content>

<asp:Content ID="Content2" contentplaceholderid="PlaceHolderPageTitleInTitleArea" runat="server">
	<%--<SharePoint:EncodedLiteral ID="EncodedLiteral2" runat="server" text="<%$Resources:wss,emaildetails_pagetitle%>" EncodeMethod='HtmlEncode'/>: <a tabindex=1 id=onetidListHlink HREF=<% SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(m_List.DefaultViewUrl,true),Response.Output);%>>
	<%SPHttpUtility.HtmlEncode(m_List.Title,Response.Output);%></a>--%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderMain" runat="server">
	<table border="0" cellspacing="0" cellpadding="0" class="ms-propertysheet">
		<wssuc:InputFormSection  Title="Email notification Schedule" Padding="false" id="ScheduleSection" runat="server">
		<Template_Description>
			<SharePoint:EncodedLiteral runat="server" text="The notification emails will be sent daily at the specified time." EncodeMethod='HtmlEncodeAllowSimpleTextFormatting'/>
		</Template_Description>
			<Template_InputFormControls>
			    <wssuc:InputFormControl LabelText="Select Notification Time:" runat="server">
		            <Template_control>
					    <wssawc:DateTimeControl TimeOnly="true" ID="notificationTime" runat="server" />
				    </Template_control>
			    </wssuc:InputFormControl>
			</Template_InputFormControls>
		</wssuc:InputFormSection>
		
		<wssuc:InputFormSection  Title="Advanced Settings" Padding="false" id="AdvancedSection" runat="server">
		<Template_Description>
			<SharePoint:EncodedLiteral ID="EncodedLiteral2" runat="server" text="The items will be filtered based on the status column." EncodeMethod='HtmlEncodeAllowSimpleTextFormatting'/>
		</Template_Description>
			<Template_InputFormControls>
			    <wssuc:InputFormControl LabelText="Select Status Column:" runat="server">
		            <Template_control>
					    <asp:DropDownList  ID="ddlStatusColumn" Title="Select Status Column" class="ms-input" Columns="5" Runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlStatusColumn_SelectedIndexChanged" />
				    </Template_control>
			    </wssuc:InputFormControl>
			    
			</Template_InputFormControls>
		</wssuc:InputFormSection>
		
		<wssuc:InputFormSection Title="Task About To Start notification Settings"  Padding="false" runat="server">
		<Template_Description>
			<SharePoint:EncodedLiteral runat="server" text="This notification will be sent when the task Start Date is approaching." EncodeMethod='HtmlEncodeAllowSimpleTextFormatting'/>
		</Template_Description>
			<Template_InputFormControls>
		    	<wssuc:InputFormControl runat="server">
				    <Template_control>
				        <wssawc:InputFormCheckBox ID="enableTaskAboutToStart" LabelText="Enable Task About to Start notification" runat="server" />
				    </Template_control>
				</wssuc:InputFormControl>
				<wssuc:InputFormControl LabelText="Select the choice to be used as Not Started Status" runat="server">
				    <Template_control>
					    
					    <asp:DropDownList ID="ddlAboutToStartStatusChoice" Title="Select Start Status Value" class="ms-input" Columns="5" Runat="server" />
					    
				    </Template_control>
			    </wssuc:InputFormControl>
			   <wssuc:InputFormControl LabelText="Number of days to be notified before Start Date" runat="server">
				    <Template_control>
					    
					    <asp:DropDownList ID="daysBeforeStartDate" Title="Days Before Start Date" class="ms-input" Columns="5" Runat="server" />
					    
				    </Template_control>
			    </wssuc:InputFormControl>
				<wssuc:InputFormControl LabelText="Email Subject" runat="server">
				    <Template_control>
					    <wssawc:InputFormTextBox ID="taskAboutToStartSubject" Title="Email Subject" Text="Your task '[TaskTitle]' is about to start!" class="ms-input" Columns="60" Runat="server" MaxLength=255 />
				    </Template_control>
			    </wssuc:InputFormControl>
			    <wssuc:InputFormControl LabelText="Email Template (leave empty for default)" runat="server">
				    <Template_control>
				    
					    <wssawc:InputFormTextBox ID="taskAboutToStartBody" Title="Email Template (leave empty for default)" class="ms-input" Rows="10"  Runat="server"  RichTextMode="FullHtml" RichText="True" TextMode="MultiLine"  />
				    </Template_control>
			    </wssuc:InputFormControl>
			</Template_InputFormControls>
		</wssuc:InputFormSection>
		
		<wssuc:InputFormSection Title="Task Not Started notification settings" Padding="false" id="ToSection" runat="server">
		<Template_Description>
			<SharePoint:EncodedLiteral ID="EncodedLiteral3" runat="server" text="This notification will be sent if the task is not started and Start Date is in the past." EncodeMethod='HtmlEncodeAllowSimpleTextFormatting'/>
		</Template_Description>
		<Template_InputFormControls>
			<wssuc:InputFormControl runat="server">
				    <Template_control>
				        <wssawc:InputFormCheckBox ID="enableTaskNotStarted" LabelText="Enable Task not Started Notification" runat="server" />
				    </Template_control>
				</wssuc:InputFormControl>
				<wssuc:InputFormControl LabelText="Select the choice to be used as Not Started Status" runat="server">
				    <Template_control>
					    
					    <asp:DropDownList ID="ddlNotStartedStatusChoice" Title="Select Start Status Value" class="ms-input" Columns="5" Runat="server" />
					    
				    </Template_control>
			    </wssuc:InputFormControl>
				<wssuc:InputFormControl LabelText="Email Subject" runat="server">
				    <Template_control>
					    <wssawc:InputFormTextBox ID="taskNotStartedSubject" Title="Email Subject" Text="You have not started on the task '[TaskTitle]'" class="ms-input" Columns="60" Runat="server" MaxLength=255 />
				    </Template_control>
			    </wssuc:InputFormControl>
			    <wssuc:InputFormControl LabelText="Email Template (leave empty for default)" runat="server">
				    <Template_control>
					    <wssawc:InputFormTextBox ID="taskNotStartedBody" Title="Email Template (leave empty for default)" class="ms-input" Rows="10"  Runat="server" RichTextMode="FullHtml" RichText="true" TextMode="MultiLine"  />
				    </Template_control>
			    </wssuc:InputFormControl>
			    
			    </Template_InputFormControls>
		</wssuc:InputFormSection>
		
		<wssuc:InputFormSection Title="Task Due notification settings" Padding="false" runat="server">
		<Template_Description>
			<SharePoint:EncodedLiteral  runat="server" text="This notification will be sent when the task is not completed and the due date is approaching." EncodeMethod='HtmlEncodeAllowSimpleTextFormatting'/>
		</Template_Description>
			<Template_InputFormControls>
				<wssuc:InputFormControl  runat="server">
				    <Template_control>
				        <wssawc:InputFormCheckBox ID="enableTaskDue" LabelText="Enable Task Due Notification" runat="server" />
				    </Template_control>
				</wssuc:InputFormControl>
				<wssuc:InputFormControl LabelText="Select the choice to be used as In Progress Status" runat="server">
				    <Template_control>
					    
					    <asp:DropDownList ID="ddlDueStatusChoice" Title="Select Start Status Value" class="ms-input" Columns="5" Runat="server" />
					    
				    </Template_control>
			    </wssuc:InputFormControl>
				<wssuc:InputFormControl LabelText="Number of days to be notified before Due Date" runat="server">
				    <Template_control>
					    <asp:DropDownList ID="daysBeforeDueDate"  Title="Days Before" class="ms-input" Columns="5" Runat="server" />
				    </Template_control>
			    </wssuc:InputFormControl>
			    <wssuc:InputFormControl LabelText="Email Subject" runat="server">
				    <Template_control>
					    <wssawc:InputFormTextBox ID="taskDueSubject" Title="Email Subject" Text="Please complete your task '[TaskTitle]'" class="ms-input" Columns="60" Runat="server" MaxLength=255 />
				    </Template_control>
			    </wssuc:InputFormControl>
			    <wssuc:InputFormControl LabelText="Email Template (leave empty for default)" runat="server">
				    <Template_control>
					    <wssawc:InputFormTextBox ID="taskDueBody" Title="Email Template (leave empty for default)" class="ms-input" Rows="10"  Runat="server" RichTextMode="FullHtml" RichText="true" TextMode="MultiLine"  />
				    </Template_control>
			    </wssuc:InputFormControl>
			</Template_InputFormControls>
		</wssuc:InputFormSection>
		
		<wssuc:InputFormSection Title="Task Overdue notification settings" Padding="false" id="TaskOverDueSection" runat="server">
		<Template_Description>
			<SharePoint:EncodedLiteral runat="server" text="This notification is sent when the task is not completed and the Due Date is in the past." EncodeMethod='HtmlEncodeAllowSimpleTextFormatting'/>
		</Template_Description>
			<Template_InputFormControls>
				<wssuc:InputFormControl  runat="server">
				    <Template_control>
				        <wssawc:InputFormCheckBox ID="enableTaskOverDue" LabelText="Enable Task Overdue Notification" runat="server" />
				    </Template_control>
				</wssuc:InputFormControl>
				<wssuc:InputFormControl LabelText="Select the choice to be used as Completed Status" runat="server">
				    <Template_control>
					    
					    <asp:DropDownList ID="ddlOverdueStatusChoice" Title="Select Start Status Value" class="ms-input" Columns="5" Runat="server" />
					    
				    </Template_control>
			    </wssuc:InputFormControl>
				<wssuc:InputFormControl LabelText="Email Subject" runat="server">
				    <Template_control>
					    <wssawc:InputFormTextBox ID="taskOverDueSubject" Title="Email Subject" Text="Your task '[TaskTitle]' is overdue!" class="ms-input" Columns="60" Runat="server" MaxLength=255 />
				    </Template_control>
			    </wssuc:InputFormControl>
			    <wssuc:InputFormControl LabelText="Email Template (leave empty for default)" runat="server">
				    <Template_control>
					    <wssawc:InputFormTextBox ID="taskOverDueBody" Title="Email Template (leave empty for default)" class="ms-input" Rows="10"  Runat="server" RichTextMode="FullHtml" RichText="true" TextMode="MultiLine"  />
				    </Template_control>
			    </wssuc:InputFormControl>
			</Template_InputFormControls>
		</wssuc:InputFormSection>
		<!-- The Save/Cancel Buttons -->
			<wssuc:ButtonSection runat="server" ShowStandardCancelButton="false">
				<Template_Buttons>
					<%--<input type="button" id="checkSpellingButton" class="ms-ButtonHeightWidth ms-slDlg-BrowseButton" value="<%$SPHtmlEncodedResources:cms, cmsslwpaddeditlink_checkspellingbutton_text%>" runat="server"/>--%>
					<asp:Button runat="server" class="ms-ButtonHeightWidth"  Text="Save" id="buttonSave" OnClick="buttonSaveClicked" />
					<asp:Button runat="server" class="ms-ButtonHeightWidth" Text="Close" id="buttonClose" OnClick="buttonCloseClicked" CausesValidation="false" />
					
					<%--<asp:Button runat="server" class="ms-ButtonHeightWidth"  Text="Cancel" id="buttonCancel" CausesValidation="false" />--%>
				</Template_Buttons>
			</wssuc:ButtonSection>
	</table>
</asp:Content>
